# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/glc-lib/glc-lib-1.0.0.ebuild,v 1.1 2008/09/20 18:51:19 Exp $

EAPI=1

inherit eutils qt4

DESCRIPTION="GLC_lib is a C++ class library that enables the quick creation of an OpenGL application based on QT4."
HOMEPAGE="http://www.glc-lib.net/"
SRC_URI="mirror://sourceforge/glc-lib/GLC_lib_src_${PV}.zip"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"

IUSE=""

DEPEND="|| ( ( x11-libs/qt-core x11-libs/qt-gui x11-libs/qt-opengl )
                =x11-libs/qt-4.3*:4 )"

S=${WORKDIR}/GLC_lib_src_${PV}

src_compile() {
        eqmake4 GLC_lib.pro
        emake || die "emake failed"
}

src_install() {
        dodoc COPYING README
        emake INSTALL_ROOT="${D}" install || die "emake install failed"
}
